[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                              Keyboard Scan Codes 


    The following are the Turbo Pascal hexadecimal keyboard scan codes:

    KEY               SCAN CODE              KEY                SCAN CODE
 ---------------------------------         ----------------------------------

    ESC                   01                  Left/Right arrow      0F
    !1                    02                  Q                     10
    @2                    03                  W                     11
    #3                    04                  E                     12
    $4                    05                  R                     13
    %5                    06                  T                     14
    ^6                    07                  Y                     15
    &7                    08                  U                     16
    *8                    09                  I                     17
    (9                    0A                  O                     18
    )0                    0B                  P                     19
    _-                    0C                  {[                    1A
    +=                    0D                  }]                    1B
    BackSpace             0E                  Return                1C
    Ctrl                  1D                  |\                    2B
    A                     1E                  Z                     2C
    S                     1F                  X                     2D
    D                     20                  C                     2E
    F                     21                  V                     2F
    G                     22                  B                     30
    H                     23                  N                     31
    J                     24                  M                     32
    K                     25                  <,                    33
    L                     26                  >.                    34
    :;                    27                  ?/                    35
    "'                    28                  Right Shift           36
    ~`                    29                  PrtScr *              37
    Left Shift            2A                  Alt                   38
    Spacebar              39                  7 Home                47
    Caps Lock             3A                  8 UpArrow             48
    F1                    3B                  9 PgUp                49
    F2                    3C                  -                     4A
    F3                    3D                  4 LeftArrow           4B
    F4                    3E                  5                     4C
    F5                    3F                  6 Right Arrow         4D
    F6                    40                  +                     4E
    F7                    41                  1 End                 4F
    F8                    42                  2 Down Arrow          50
    F9                    43                  3 PgDn                51
    F10                   44                  0 Insert              52
    F11                   D9                  Delete                53
    F12                   DA                  Num Lock              45
    Scroll Lock           46

 ----------------------------------------------------------------------------

    If the first value obtained from the ReadKey function was #0, then
    the second call to ReadKey will return one of the following.


      Scan Code               Meaning 
     -----------           ------------------------------------------

        3                   NUL ( Null Character )
        15                  Shift Tab ( ---<vv )
        16-25               ALT-Q/W/E/R/T/Y/U/I/O/P
        30-38               ALT-A/S/D/F/G/H/J/K/L
        44-50               ALT-Z/X/C/V/B/N/M
        59-68               F1 - F10 ( Disabled as softkeys )
        71                  Home
        72                  Up Arrow
        73                  PgUp
        75                  Left Arrow
        77                  Right Arrow
        79                  End
        80                  Down Arrow
        81                  PgDn
        82                  Ins
        83                  Del
        84-93               F11 - F20 ( Shift-F1 to Shift-F10 )
        94-103              F21 - F30 ( Ctrl-F1 to Ctrl-F10 )
        104-113             F31 - F40 ( Alt-F1 to Alt-F10 )
        114                 Ctrl-PrtSc
        115                 Ctrl-Left Arrow
        116                 Ctrl-Right Arrow
        117                 Ctrl-End
        118                 Ctrl-Page Down
        119                 Ctrl-Home
        120-131             ALT-1/2/3/4/5/6/7/8/9/0/-/=/
        132                 Ctrl-PgUp
        133                 F11
        134                 F12
        135                 Shift-F11
        136                 Shift-F12
        137                 Ctrl-F11
        138                 Ctrl-F12
        139                 Alt-F11
        140                 Alt-F12

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson